$(function () {
    $('#fttable').dataTable({
        "aLengthMenu": [[2,5,10, -1], [2,5,10, "All"]],
        "bStateSave": true,
//            "bSort": false,
        "oLanguage": {
            "sLengthMenu": "每页显示 _MENU_ 条记录",
            "sZeroRecords": "对不起，查询不到任何相关数据",
            "sInfo": "当前显示 _START_ 到 _END_ 条，共 _TOTAL_ 条记录",
            "sInfoEmtpy": "找不到相关数据",
            "sInfoFiltered": "数据表中共为 _MAX_ 条记录)",
            "sProcessing": "正在加载中...",
            "sSearch": "搜索",
            "oPaginate": {
                "sFirst": "首页",
                "sPrevious": " 上一页 ",
                "sNext": " 下一页 ",
                "sLast": " 末页 "
            }
        }
    })


 /*   document.xiangqing=function(test) {
        var h=$(test);
        var xuanxiang=$(test).text()
        if(xuanxiang=="详情"){
            h.parent().next().css("display","")
            $(".xqnrhi").css("display","")
            console.log(h.next())
            $("#fttable").css("border","solid")
            $("#fttable").css("border-color","#00a7d0")
            $("#fttable th").css("border-color","#00a7d0")
            $("#fttable td").css("border-color","#00a65a")
            h.text("收起")
        }else {
            $(".xqnrhi").css("display","none")
            h.parent().next().css("display","none")
            $("#fttable").css("border","transparent")
            $("#fttable").css("border-color","transparent")
            $("#fttable th").css("border-color","transparent")
            $("#fttable td").css("border-color","transparent")
            h.text("详情")
        }
    }*/

    $(".xq").click(function () {
        var xuanxiang=$(this).text()
        if(xuanxiang=="详情"){
            $(".xqnr").css("display","")
            $("#fttable").css("border","solid")
            $("#fttable").css("border-color","#00a7d0")
            $("#fttable th").css("border-color","#00a7d0")
            $("#fttable td").css("border-color","#00a65a")
            $(this).text("收起")
        }else {
            $(".xqnr").css("display","none")
            $("#fttable").css("border","transparent")
            $("#fttable").css("border-color","transparent")
            $("#fttable th").css("border-color","transparent")
            $("#fttable td").css("border-color","transparent")
            $(this).text("详情")
        }

    })
})